package com.item.yxlottery.yxlottery.activity;

import android.view.View;
import android.widget.ImageButton;
import android.widget.TextView;

import com.item.yxlottery.yxlottery.R;
import com.item.yxlottery.yxlottery.base.BaseActivity;
import com.zhy.autolayout.AutoRelativeLayout;

import butterknife.ButterKnife;

/**
 * Created by tuxing on 2017/1/17.
 * 我的银行卡
 */

public class MyBankCaredActivity extends BaseActivity implements View.OnClickListener{
    @Override
    protected void setCustomActionBar(ImageButton ibActionbarLeft, TextView tvActionBarTitle, ImageButton ibActionbarRight, AutoRelativeLayout layoutActionbar) {
        ibActionbarLeft.setImageResource(R.drawable.leftarrow);
        ibActionbarLeft.setOnClickListener(this);
        ibActionbarRight.setVisibility(View.GONE);
        tvActionBarTitle.setText("我的银行卡");
    }

    @Override
    protected View initView() {
        View view = View.inflate(this, R.layout.activity_mybankcard, null);
        view.findViewById(R.id.mybankcard_tv_add).setOnClickListener(this);
        ButterKnife.bind(this, view);
        return view;
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void initEvent() {

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.ib_actionbar_left:
                finish();
                break;

            case R.id.mybankcard_tv_add:
                gotoActivity(AddBankCard.class);
                break;
        }

    }
}
